package com.huarun.common.util;

/***
 * 
 * @author dzm
 * @创建时间 2018-10-23 17:10
 * @Description 执行返回码
 */
public class ResultCodeValue {
	// 结果统一返回值

	public final static String OPER_CODE_KEY = "code";
	public final static String OPER_DESC_KEY = "msg";
	public final static String OPER_DATA_KEY = "data";
	public final static String OPER_TS_KEY = "ts";
	/** 请求成功 */
	public final static int R_SUCCESS = 200;
	/**************************** 本系统请求错误码 start****************/
	/** 请求失败 */
	public static final int R_ERROR = 40001;
	/** 参数不能为空 */
	public static final int R_PARAM_REQUIRED = 40002;
	/** 请求参数错误 */
	public static final int R_PARAM_ERROR = 40003;
	/** 请求超时 */
	public static final int R_TIMEOUT = 40004;
	/** 请求的openId在系统中找不到 */
	public static final int R_OPENID_NOT_FOUND = 40005;
	/** 授权错误 */
	public static final int R_AUTHOR_ERROR = 40006;
	/** 没有访问权限 */
	public static final int R_AUTHOR_REQUIRED = 40007;
	/** 校验码错误 */
	public static final int R_CODE_INVALID = 40009;
	/** 用户名或密码有误 */
	public static final int R_ACCOUNT_PASSWORD_INVALID = 40010;
	/** 运行时异常错误 */
	public static final int R_SYSTEM_CODE_ERROR = 40011;
	/** 请求方式不支持 */
	public static final int R_NO_SUPPORT = 40012;
	/** 未知错误 */
	public static final int R_UNKNOW = 40013;
	/** 验证错误 */
	public static final int R_INVALID_ERROR = 40014;
	/** 请求的session_key有误 */
	public static final int R_SESSION_KEY_ERROR = 40015;
	
	public static final int R_SESSION_KEY_IS_NULL = 40021;
	/** 请求的加密数据有误  encryptedData */ 
	public static final int R_ENCRYPTED_DATA_ERROR = 40016;
	/** 请求的code为空 */
	public static final int R_CODE_IS_NULL = 40017;
	/** TOKEN为空 */
	public static final int R_TOKEN_IS_NULL = 40018;
	/** 保存token失败 */
	public static final int R_SAVE_TOKEN_ERROR = 40019;
	/** type为空 */
	public static final int R_IV_IS_NULL = 40020;
	/** type有误 */
	public static final int R_ROLE_IS_CHANGE = 40022;
	
	/** 该项目下查询不到用户信息 */
	public static final int R_USERINFO_IS_NULL = 40023;
	


	/**************************** 本系统请求错误码end ****************/

	/** 服务器成功返回用户请求的数据 */
	public static final int MANAGE_SERVER_SUCCESS = 200;
	/** 签名验证失败 */
	public static final int MANAGE_SIGNATURE_VERIFICATION_FAILED = 401;
	/** 参数为空 */
	public static final int MANAGE_THE_PARAMETER_IS_EMPTY = 403;
	/** 服务器异常 */
	public static final int MANAGE_SERVER_EXCEPTION = 500;

	/**未知错误*/
	public static final int FACE_UNKNOWN_ERROR = 1000;
	/** 请求方法不允许*/
	public static final int FACE_REQUEST_METHOD_NOT_ALLOWED = 1001;
	/** 参数错误 */
	public static final int FACE_PARAMETER_ERROR = 1002;
	/** 数据库错误 */
	public static final int FACE_DATABASE_ERROR = 1003;
	/** 操作不允许 */
	public final static int FACE_OPERATION_NOT_ALLOWED = 1004;
	/** 网络错误 */
	public final static int FACE_NETWORK_ERROR = 1005;
	/** 无效主题 */
	public final static int FACE_INVALID_TOPIC = 1006;
	/**密码需要更改*/
	public static final int FACE_PASSWORD_NEEDS_CHANGED = 1007;
	/**二次验证错误*/
	public static final int FACE_SECONDARY_VERIFICATION_ERROR = 1008;
	/**抽取人脸特征服务压力过大，请重试*/
	public static final int FACE_SERVICE_PRESSURE_IS_TOO_HIGH = 1009;
	/**图片文件格式不正确*/
	public static final int FACE_IMAGE_FILE_FORMAT_INCORRECT = 1010;
	/**core down*/
	public static final int FACE_CORE_DOWN = 1011;
	/**用户不存在*/
	public static final int FACE_USER_NOT_EXIST = 2000;
	/**Group 不存在*/
	public static final int FACE_GROUP_NOT_EXIST = 2001;
	/**Group 已存在*/
	public static final int FACE_GROUP_ALREADY_EXISTS = 2002;
	/**相机不存在*/
	public static final int FACE_CAMERA_NOT_EXIST = 2003;
	/**Core 不存在*/
	public static final int FACE_CORE_NOT_EXIST = 2004;
	/**用户不存在*/
	public static final int FACE_USER_DOES_NOT_EXIST = 2005;
	/**照片不存在*/
	public static final int FACE_PHOTO_NOT_EXIST = 2006;
	/**主机不存在*/
	public static final int FACE_HOST_NOT_EXIST = 2007;
	/**屏幕不存在*/
	public static final int FACE_SCREEN_NOT_EXIST = 2008;
	/**公司不存在*/
	public static final int FACE_COMPANY_NOT_EXIST = 2009;
	/**历史记录不存在*/
	public static final int FACE_HISTORY_NOT_EXIST = 2010;
	/**用户名已存在*/
	public static final int FACE_USERNAME_ALREADY_EXISTS = 2011;
	/**公司已存在*/
	public static final int FACE_COMPANY_ALREADY_EXISTS = 2012;
	/**设备不存在，请刷新*/
	public static final int FACE_DEVICE_NOT_EXIST = 2013;
	/**访客机不存在*/
	public static final int FACE_VISITOR_NOT_EXIST = 2105;
	/**访客机已经被禁用*/
	public static final int FACE_GUEST_MACHINE_DISABLED = 2106;
	/**拜访的用户不存在*/
	public static final int FACE_VISITING_USER_NOT_EXIST = 2107;
	/**短信发送失败*/
	public static final int FACE_MESSAGE_FAILED_TO_SEND = 2108;
	/**DevicdID已经被注册*/
	public static final int FACE_DEVICDID_ALREADY_REGISTERED = 2109;
	/**用户没有此访客机使用权限*/
	public static final int FACE_USER_NO_ACCESS = 2110;
	/**错误的photo_id*/
	public static final int FACE_ERROR_PHOTO_ID = 2111;
	/**主机已经存在*/
	public static final int FACE_MACHINE_ALREADY_EXISTS = 20011;
	/**主机已绑定*/
	public static final int FACE_HOST_IS_BOUND = 20012;
	/**主机未绑定*/
	public static final int FACE_HOST_NO_BOUND = 20013;
	/**主机与用户公司不符*/
	public static final int FACE_HOST_NOT_MATCH_COMPANY = 20014;
	/**姓名已存在*/
	public static final int FACE_NAME_ALREADY_EXISTS = 20110;
	/**照片已满*/
	public static final int FACE_PHOTO_FULL = 20120;
	/**Excel 包含错误*/
	public static final int FACE_EXCEL_CONTAINS_ERRORS = 20130;
	/**文件不存在*/
	public static final int FACE_FILE_NOT_EXIST = 20140;
	/**文件格式错误*/
	public static final int FACE_WRONG_FILE_FORMAT = 20141;
	/**邮箱已存在*/
	public static final int FACE_MAILBOX_ALREADY_EXISTS = 20150;
	/**权限不足*/
	public static final int FACE_INSUFFICIENT_PERMISSIONS = 20160;
	/**上传图片过大*/
	public static final int FACE_UPLOADING_PICTURE_TOO_LARGE = 20170;
	/**上传图片过小*/
	public static final int FACE_UPLOADING_PICTURE_TOO_SMALL = 20171;
	/**密码不正确*/
	public static final int FACE_PASSWORD_IS_INCORRECT = 3000;
	/**验证码不正确*/
	public static final int FACE_INCORRECT_VERIFICATION_CODE = 3001;
	/**两次密码不一致*/
	public static final int FACE_TWO_PASSWORDS_ARE_INCONSISTENT = 3002;
	/**请登录*/
	public static final int FACE_PLEASE_SIGN_IN = 3003;
	/**该账号未绑定本主机*/
	public static final int FACE_ACCOUNT_NOT_BOUND_HOST = 3004;
	/**获取天气信息失败*/
	public static final int FACE_FAILED_TO_GET_WEATHER_INFORMATION = 4001;
	/**未检测到人脸*/
	public static final int FACE_NO_FACE_DETECTED = 5000;
	/**摄像头配置不正确*/
	public static final int FACE_CAMERA_CONFIGURATION_IS_INCORRECT = 5001;
	/**不是有效的 JSON 格式*/
	public static final int FACE_NOT_VALID_JSON_FORMAT = 5002;
	/**名称已存在*/
	public static final int FACE_APPELLATION_ALREADY_EXISTS = 5003;
	/**人脸质量太低*/
	public static final int FACE_FACE_QUALITY_TOO_LOW = 5004;
	/**人脸的亮度过低*/
	public static final int FACE_LOW_BRIGHTNESS = 5005;
	/**人脸的亮度过高*/
	public static final int FACE_HIGH_BRIGHTNESS = 5006;
	/**人脸的亮度不均匀 ，请提供脸部光照均匀的图片*/
	public static final int FACE_UNEVEN_BRIGHTNESS = 5007;
	/**人脸角度过大，请提供正脸图片*/
	public static final int FACE_ANGLE_TOO_LARGE1 = 5008;
	/**人脸角度过大，请提供正脸图片*/
	public static final int FACE_ANGLE_TOO_LARGE2 = 5009;
	/**人脸角度过大，请提供正脸图片*/
	public static final int FACE_ANGLE_TOO_LARGE3 = 5010;
	/**人脸不清晰，请提供清晰人脸图片*/
	public static final int FACE_NOT_CLEAR = 5011;
	/**眼部有遮挡，请提供无遮挡的人脸图片*/
	public static final int FACE_EYES_ARE_BLOCKED = 5012;
	/**人脸过小，请提供足够像素的人脸图片*/
	public static final int FACE_FACE_TOO_SMALL = 5013;
	/**眼部有遮挡，请提供无遮挡的人脸图片*/
	public static final int FACE_EYES_ARE_BLOCKED1 = 5014;
	/**请提供彩色人脸图片*/
	public static final int FACE_PROVIDE_COLOR_PICTURES = 5015;
	/**脸部缺失，请提供完整的人脸图片*/
	public static final int FACE_MISSING_FACE = 5016;
	/**相机正在删除中*/
	public static final int FACE_CAMERA_BEING_DELETED = 6000;
	/**密码错误次数过多*/
	public static final int FACE_TOO_MANY_INCORRECT_PASSWORDS = 6001;
	/**由于您连续输错3次密码*/
	public static final int FACE_WRONG_PASSWORD_THREE_TIMES = 6002;
	/**组织已存在*/
	public static final int FACE_ORGANIZATION_ALREADY_EXISTS = 6013;
	/**组织不存在*/
	public static final int FACE_ORGANIZATION_NOT_EXIST = 6014;
	/**公司不在组织内*/
	public static final int FACE_COMPANY_NOT_IN_ORGANIZATION = 6015;
	/**用户未绑定公司*/
	public static final int FACE_USER_NOT_BOUND_COMPANY = 6016;

}
